package com.cn.jiyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.jiyun.entity.pojo.Hotel;
import com.cn.jiyun.entity.pojo.Room;
import com.cn.jiyun.entity.vo.HotelVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 针对表【-Hotel】的数据库操作Mapper
 *
 * @author lxy
 * @since 2025-01-17
 *
 *
 */
@Mapper
public interface HotelMapper extends BaseMapper<Hotel> {

    List<Hotel> findAllList(HotelVO hotelVo);

    Hotel getHotelId(Integer Id);

    List<Room> selectRoom(Room room);

    @Select("select * from room where rid=#{roomId}")
    Room selectRoombyId(Integer roomId);

    @Select("select * from hotel where id=#{id}")
    Hotel findById(Integer id);
}
